home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 1 / PC Actual CD 01.iso / share / dos / progr / svga2.arj / NOTES32K.SVG < prev    next >
Encoding:
Text File  |  1993-05-24  |  3.2 KB  |  95 lines

  1. SuperVGA 32768 BGI driver
  2. Version 1.3
  3. May 21, 1993
  4.  
  5. Revisions:
  6.     1.2 - April 20, 1993
  7.     1.15 - January 28, 1993
  8.     1.1 - June 12, 1992
  9.  
  10. This is the newest version of my SuperVGA 32768 BGI driver.  All functions
  11. have been implemented, but there may still be bugs.
  12.  
  13. Note:  Palette functions, and the mouse cursor will not work with this driver.
  14.  
  15.   Using the HiColor driver:
  16.  
  17.     Implementing the 32768 color driver involved several hacks, as
  18.     the BGI interface only supports 8-bit color values, but the driver
  19.     needed support for 15-bit color values.  The procedures that needed
  20.     to be changed were those that accepted color values, (SetColor,
  21.     SetFillStyle, SetFillPattern, PutPixel and Floodfill)  and those 
  22.     that return color values (GetColor and GetPixel).
  23.     As the HiColor modes do not support palettes, I decided to use
  24.     the SetRgbPalette call to set colors, as it accepts values for the 
  25.     R,G and B components of the color.
  26.  
  27.     The format of a pixel in the HiColor modes is:
  28.         -Byte 1- -Byte 0-
  29.         xRRRRRGG GGGBBBBB
  30.  
  31.     Several new functions are defined to make the color selection easier.
  32.     In addition, the macro RGB(rv,gv,bv) has been defined.  It packs
  33.     the R, G and B values into the format described above and returns the
  34.     combined color.
  35.  
  36.     * RealDrawColor(); - Sets the current drawing color.
  37.       Usage:
  38.         setcolor(RealDrawColor(RGB(rval,gval,bval)); - HiColor modes
  39.         setcolor(RealDrawColor(cval)); - (suggested for any other driver)
  40.  
  41.     * RealFillColor(); - Sets the current fill color.
  42.       Usage:
  43.         setfillstyle(fillstyle,RealFillColor(RGB(rval,gval,bval)));
  44.         setfillstyle(fillstyle,RealFillColor(cval));
  45.         setfillpattern(fillpat,RealFillColor(RGB(rval,gval,bval)));
  46.         setfillpattern(fillpat,RealFillColor(cval));
  47.  
  48.     * RealColor(); - For putpixel, sets the color of the pixel
  49.                - For floodfill, sets the color of the boundary
  50.         putpixel(x,y,RealColor(RGB(rval,gval,bval)));
  51.         putpixel(x,y,RealColor(cval));
  52.         floodfill(x,y,RealColor(RGB(rval,gval,bval)));
  53.         floodfill(x,y,RealColor(cval));
  54.  
  55.     * GetPixel normally only returns an 8-bit value.  However, the
  56.       value returned from the BGI driver is a 16-bit value in DX (the 
  57.       BGI kernel loads the value into AX and clears the upper 8 bits),
  58.       so to read the value of a pixel:
  59.  
  60.       In Pascal:
  61.         Color := getpixel(x,y);
  62.         inline($89/$56/<Color);  (* Loads 15-bit color value *)
  63.  
  64.       In C:
  65.         Color = getpixel(x,y);
  66.         Color = _DX;
  67.       
  68.  
  69.     * Support for the ATI XL card has been added (1.1) 
  70.         ATI only supports 640x480x32k
  71.  
  72.     * Paging has been added (1.1)
  73.  
  74.       Mode        Paging?        # of pages (with 1024k)
  75.       320x200    yes        8
  76.       640x350    yes        2
  77.       640x400    yes        2
  78.       640x480    no        1
  79.       800x600    no        1
  80.  
  81.     o Mouse code hooks added (1.15)
  82.  
  83.     o New card support added, changed old card support (1.2)
  84.         Acumos, Avance Logic 2101, Cirrus 54xx, Compaq, MXIC 68020, NCR, 
  85.         Primus 2000, Realtek
  86.       Not all cards support 32k colors.
  87.  
  88.     o Paging enhanced to work with new cards (1.2)
  89.  
  90.     o Fixed text clipping at right and bottom edges (1.3)
  91.  
  92.     o Various speed optimizations (line & solid bar) (1.3)
  93.  
  94.     o Added compile-time support for 8x8, 8x14, or 8x16 bitmap fonts (1.3)
  95.